Use motion library function blocks in your PLC"Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events application program to interface to the Pipe Network (to see the procedure Design Motion with Pipe Network).
ML function blocks are used to:
For example:
For example:
With the Pipe Network engine, when a motion function block is executed while another one is presently executing, there is an immediate change. That means the previous function block is aborted and the new one immediately becomes the active move and begins executing.
During initialization, the IEC"International Electrotechnical Commission" IEC is a not-for-profit, non-governmental international standards organization that prepares and publishes International Standards for all electrical, electronic and related technologies 61131-3 application can create (by means of the MLMotionInit function) the different motion objects it needs (pipes, blocks, axes):
When the state machine leaves the Init state, the creation of new motion objects is no longer allowed, in order to avoid memory allocation problems while running the application.
The Start method (MLMotionStart function) initializes the motion engine, motion bus driver, and initializes EtherCATEtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs network to operational mode. MLMotionStopbus driver deactivates the execution of the motion engine.
The function blocks MLMotionStart, MLMotionStop and MLMotionRstErr can be used by the IEC 61131-3 applications to navigate between states: i.e. Not initialized, Running, Stopped and Error.
There is a Q output on most ML function blocks. The operation of the Q output is different for different ML function blocks. The Q output can be useful in PLC application programs.
Examples:
For more details on Q output, refer to What is the difference between Q and OK?
To access the functions that manage the Pipe Network, refer to Motion Library - Pipe Network
|
Copyright © 2015 Kollmorgen™ |
|